package com.example.forum.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_user
 */
@Data
public class User implements Serializable {
    private Long id;

    private String username;

    @JsonIgnore
    private String password;

    private String nickname;

    private String phoneNum;

    private String email;

    private Integer gender;

    @JsonIgnore
    private String salt;

    private String avatarUrl;

    private Integer articleCount;

    private Integer isAdmin;

    private String remark;

    private Integer state;

    @JsonIgnore
    private Integer deleteState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
